package com.smartfactory.sail.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author 王巨壁
 * @title: CustStatusEnum
 * @projectName smart-sail
 * @description: 入库状态
 * @date 2019/7/311:57
 */
public enum StorageStatusEnum implements IEnum {
    SQRK(0,"申请入库"),
    DRK(1,"待入库"),
    WF(2,"外发中"),
    JCBGG(3,"检测不过关"),
    RK(4,"入库"),
    CZ(-1,"充足"),
    ZC(-2,"正常"),
    BZ(-3,"不足"),
    ;
    StorageStatusEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }
    @JsonValue
    public String getDescp() {
        return descp;
    }

    @Override
    public Serializable getValue() {
        return code;
    }
}
